/*
 * @Author: 贺永胜
 * @Date: 2022-06-09 23:19:50
 * @公众号: 百里青山
 * @LastEditors: 贺永胜
 * @LastEditTime: 2022-06-15 01:31:20
 * @Descripttion:
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/desktop',
    name: 'desktop',
    component: () => import('../views/DesktopView.vue')
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
